package cn.cat.gitee;

import cn.cat.gitee.utils.UserAgentUtil;

import java.util.Map;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {

        System.out.println("Hello World!");
        String agent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SE 2.X MetaSr 1.0; SE 2.X MetaSr 1.0; .NET CLR 2.0.50727; SE 2.X MetaSr 1.0)";
        //UserAgentUtil userAgentUtil = new UserAgentUtil();
        Map<String, String> osAndBrowser = UserAgentUtil.parseOSAndBrowser(1, agent);
        System.out.println(osAndBrowser.toString());
        Map<String, String> osAndBrowser1 = UserAgentUtil.parseOSAndBrowser(2, agent);
        System.out.println(osAndBrowser1.toString());
    }
}
